import { ISearchItemType } from '/@/components/search/type/index';
import cache from '/@/utils/hook/cache';
import { i18n } from '/@/locales/i18n';
const $t = i18n.global.t;

const object: ISearchItemType = {
	// query,add,reset,delete 展示按钮对应字符串
	showButtonType: [],
	//初始化搜索框数据-对应propList中元素prop属性
	searchObj: {
		ProjectName: '',
		ProjectNo: '',
		StartTime: '',
		CreatedUserId: cache.getCache('userInfo').jobNum,
		CreatedUserName: cache.getCache('userInfo').staffName,
	},
	size: 'small',
	//搜索框样式, type: 'input'输入框/type:'select'选择框两种
	propList: [
		{
			prop: 'ProjectName',
			type: 'input',
			label: $t('xiangMuMingCheng_0'),
			//输入框样式
			inputStye: {
				placeholder: $t('qingShuRuXiangMuMingCheng'),
			},
		},
		{
			prop: 'ProjectNo',
			type: 'input',
			label: $t('xiangMuBianHao_0'),
			//输入框样式
			inputStye: {
				placeholder: $t('qingShuRuXiangMuBianHao'),
			},
		},
		{
			type: 'date',
			prop: 'StartTime',
			label: $t('riQi_0'),
			placeholder: $t('qingXuanZeRiQi'),
		},
	],
};

export default object;
